package org.Lin.controller;

import org.json.JSONObject;

public abstract class BaseController {

    protected JSONObject createSuccessResponse(String message) {
        JSONObject response = new JSONObject();
        response.put("status", "success");
        response.put("message", message);
        return response;
    }

    protected JSONObject createErrorResponse(String message) {
        JSONObject response = new JSONObject();
        response.put("status", "error");
        response.put("message", message);
        return response;
    }
}
